<?php

namespace app\common\validate\User;

//引入底层的验证器类
use think\Validate;

/**
 * 收藏验证器
 */
class Collect extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'userid' => 'require', //必填
        'postid' => 'require', //必填
    ];

    /**
     * 提示消息
     */
    protected $message = [
        'userid.require'  => '用户信息未知',
        'postid.require'  => '帖子信息未知',
    ];
    
    /**
     * 验证场景
     */
    protected $scene = [
    ];
}
